package com.example.selenium.queue.rabbitmq.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "spring.rabbitmq") // 注意名字必须要小写，否则会报prefix must be in cannonicial 错误
@Data
public class MqProperties {

    private String host;
    private Integer port;
    private String username;
    private String password;

}
